//package com.dhkj.web.idf.model;
//
//import android.os.Parcel;
//import android.os.Parcelable;
//
//import java.util.Objects;
//
//public class ConsumptionType implements Parcelable {
//    private int consumptionTypePK;
//    private String consumptionTypeName;
//    private String beginTime;
//    private String endTime;
//
//    @Override
//    public boolean equals(Object o) {
//        if (this == o) return true;
//        if (o == null || getClass() != o.getClass()) return false;
//        ConsumptionType that = (ConsumptionType) o;
//        return consumptionTypePK == that.consumptionTypePK;
//    }
//
//    @Override
//    public int hashCode() {
//        return Objects.hash(consumptionTypePK);
//    }
//
//    public ConsumptionType() {
//    }
//
//    public ConsumptionType(ConsumptionTypeRealmObject consumptionTypeRealmObject) {
//        this.consumptionTypePK = consumptionTypeRealmObject.getConsumptionTypePK();
//        this.consumptionTypeName = consumptionTypeRealmObject.getConsumptionTypeName();
//        this.beginTime = consumptionTypeRealmObject.getBeginTime();
//        this.endTime = consumptionTypeRealmObject.getEndTime();
//    }
//
//    public int getConsumptionTypePK() {
//        return consumptionTypePK;
//    }
//
//    public void setConsumptionTypePK(int consumptionTypePK) {
//        this.consumptionTypePK = consumptionTypePK;
//    }
//
//    public String getConsumptionTypeName() {
//        return consumptionTypeName;
//    }
//
//    public void setConsumptionTypeName(String consumptionTypeName) {
//        this.consumptionTypeName = consumptionTypeName;
//    }
//
//    public String getBeginTime() {
//        return beginTime;
//    }
//
//    public void setBeginTime(String beginTime) {
//        this.beginTime = beginTime;
//    }
//
//    public String getEndTime() {
//        return endTime;
//    }
//
//    public void setEndTime(String endTime) {
//        this.endTime = endTime;
//    }
//
//    public ConsumptionType(Parcel in) {
//        this.consumptionTypePK = in.readInt();
//        this.consumptionTypeName = in.readString();
//        this.beginTime = in.readString();
//        this.endTime = in.readString();
//    }
//
//    public static final Parcelable.Creator<ConsumptionType> CREATOR = new Parcelable.Creator<ConsumptionType>() {
//        @Override
//        public ConsumptionType createFromParcel(Parcel in) {
//            return new ConsumptionType(in);
//        }
//
//        @Override
//        public ConsumptionType[] newArray(int size) {
//            return new ConsumptionType[size];
//        }
//    };
//
//    @Override
//    public int describeContents() {
//        return 0;
//    }
//
//    @Override
//    public void writeToParcel(Parcel parcel, int i) {
//        parcel.writeInt(this.consumptionTypePK);
//        parcel.writeString(this.consumptionTypeName);
//        parcel.writeString(this.beginTime);
//        parcel.writeString(this.endTime);
//    }
//}
